<%
/*  This page will authenticate all the users for the application

    This page will create a log of users using the Application internal table: App_UsageLog

*/
%>
<%@ page errorPage="../jsp/AppError.jsp" %>
<%          // Create the User session
            String verified = (String)session.getAttribute("verified");

            if (verified == null){
                session.setAttribute("verified", "Y");
%>
<meta http-equiv="refresh" content="0;URL=../Includes/security.jsp">
<%          } else {
                String sessionValue = request.getRemoteUser();
                session.setAttribute("netId", sessionValue);

                if (sessionValue == null){
%>
This browser does not support NTLM authentication.<br>
Create screen for LDAP
<%              } else {

                    // Add this visit to the log
                    // ----> mySecurity.addToVisitLog(netId); <----

                    // Separate domain and Network ID
                    // String ntDomain = mySecurity.ntDomain(netId);
                    // netId = mySecurity.netId(netId);

                    // Domain validation - (NOT USING NOW)
                    // --> code for domain validation here <---

%>
<meta http-equiv="refresh" content="0;URL=../jsp-app/default.jsp">
<%
                }
            }
%>


